Skip to content

Conversation

azdavis
Copy link
Contributor

@azdavis azdavis commented Sep 1, 2021

Fixes #7609.

This permits writing the config for disallowed-methods as either a list of strings (like before) or a list of tables, where each table gives the path to the disallowed method and an optional reason for why the method is disallowed.

changelog: Allow giving reasons for [disallowed_methods]

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @camsteffen (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 1, 2021
@azdavis azdavis changed the title Allow giving reasons for [disallowed_methods] Allow giving reasons for disallowed_methods Sep 1, 2021
@bors
Copy link
Contributor

bors commented Sep 2, 2021

☔ The latest upstream changes (presumably #7604) made this pull request unmergeable. Please resolve the merge conflicts.

@azdavis
Copy link
Contributor Author

azdavis commented Sep 2, 2021

rebased and force-pushed to address feedback

@azdavis azdavis requested a review from camsteffen September 3, 2021 16:53
Copy link
Contributor

@camsteffen camsteffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice! Just a few nits.

@azdavis azdavis requested a review from camsteffen September 6, 2021 01:25
@azdavis azdavis requested a review from camsteffen September 8, 2021 23:06
Copy link
Contributor

@camsteffen camsteffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Please squash commits.

@azdavis
Copy link
Contributor Author

azdavis commented Sep 9, 2021

ok, rebased and squashed into 1 commit

@camsteffen
Copy link
Contributor

Thanks and nice first contribution!

@bors r+

@bors
Copy link
Contributor

bors commented Sep 9, 2021

📌 Commit 293db0d has been approved by camsteffen

@bors
Copy link
Contributor

bors commented Sep 9, 2021

⌛ Testing commit 293db0d with merge 36e6469...

@bors
Copy link
Contributor

bors commented Sep 9, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: camsteffen
Pushing 36e6469 to master...

@bors bors merged commit 36e6469 into rust-lang:master Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disallowed_methods should allow for reasons in the toml file
5 participants